//公鸡5块钱，母鸡三块钱，鸡仔三个一块钱，打印100快钱所有买鸡的方法
//x 公鸡数 y母鸡数，
//y = 25-(7/4) *x
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = 0,y = 0;
        int i = 0;
        while(true) {
             y = 25 - (7*i)/4;
            if(y<0) {
                break;
            }
            if(y*3+i*5+(100-i-y)/3 == 100) {
                x = i;
                System.out.println(x+" "+y+" "+(100-x-y));
            }
            i+=4;
        }
    }
}